//
//  Person.h
//  OC05_homework
//
//  Created by Hanlingyu on 16/7/8.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject

@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSString *sex;
@property (nonatomic, assign) NSInteger age;

- (instancetype)initWithName:(NSString *)name
                         sex:(NSString *)sex
                         age:(NSInteger)age;
- (NSString *)description;
- (NSComparisonResult)compareByAge:(Person *)per;
- (NSComparisonResult)compareByName:(Person *)per;
- (NSComparisonResult)compareBySex:(Person *)per;

@end
